<template>
  <div>
    <template>
      <ul v-for="item in list" :key="item.id">
        <li>
          <slot :data="item">{{ item.name }}</slot>
        </li>
      </ul>
    </template>
  </div>
</template>

<script>
export default {
  name: 'ShowTree',
  props: {
    data: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style>
</style>
